//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.andromeda.androbench2;

public class HistoryData {
    double avg_iops_rr;
    double avg_iops_rw;
    double avg_mbps_rr;
    double avg_mbps_rw;
    double avg_mbps_sr;
    double avg_mbps_sw;
    double avg_perf_sqlite_delete;
    double avg_perf_sqlite_insert;
    double avg_perf_sqlite_update;
    int buffersize_rnd;
    int buffersize_seq;
    String date;
    int filesize_read;
    int filesize_write;
    int index_usage;
    String journal_mode;
    int num_thread;
    int one_filesize;
    String target;
    int transaction_size;
    String useBuffer;

    HistoryData(String var1, String var2, int var3, int var4, int var5, int var6, String var7, double var8, double var10, double var12, double var14, double var16, double var18, double var20, double var22, double var24, int var26, int var27, int var28, String var29, int var30) {
        this.date = var1;
        this.target = var2;
        this.filesize_read = var3;
        this.filesize_write = var4;
        this.buffersize_rnd = var6;
        this.buffersize_seq = var5;
        this.useBuffer = var7;
        this.avg_mbps_sr = var8;
        this.avg_mbps_sw = var10;
        this.avg_mbps_rr = var12;
        this.avg_iops_rr = var14;
        this.avg_mbps_rw = var16;
        this.avg_iops_rw = var18;
        this.avg_perf_sqlite_insert = var20;
        this.avg_perf_sqlite_update = var22;
        this.avg_perf_sqlite_delete = var24;
        this.transaction_size = var28;
        this.journal_mode = var29;
        this.index_usage = var30;
        this.one_filesize = var26;
        this.num_thread = var27;
    }

    public double getAvg_iops_rr() {
        return this.avg_iops_rr;
    }

    public double getAvg_iops_rw() {
        return this.avg_iops_rw;
    }

    public double getAvg_mbps_rr() {
        return this.avg_mbps_rr;
    }

    public double getAvg_mbps_rw() {
        return this.avg_mbps_rw;
    }

    public double getAvg_mbps_sr() {
        return this.avg_mbps_sr;
    }

    public double getAvg_mbps_sw() {
        return this.avg_mbps_sw;
    }

    public double getAvg_perf_sqlite_delete() {
        return this.avg_perf_sqlite_delete;
    }

    public double getAvg_perf_sqlite_insert() {
        return this.avg_perf_sqlite_insert;
    }

    public double getAvg_perf_sqlite_update() {
        return this.avg_perf_sqlite_update;
    }

    public String getDate() {
        return this.date;
    }

    public String getResult() {
        String var1 = "Date : " + this.date + "\n\n";
        if (this.avg_mbps_sr != 0.0D && this.avg_mbps_sw != 0.0D && this.avg_mbps_rr != 0.0D && this.avg_mbps_rw != 0.0D) {
            var1 = var1 + "# Microbenchmark\nTarget: " + this.target + "\n" + this.one_filesize + "MB / " + this.buffersize_seq + "KB / " + this.buffersize_rnd + "KB / " + this.num_thread + "\n" + "\nSEQ RD: " + this.avg_mbps_sr + " MB/s" + "\nSEQ WR: " + this.avg_mbps_sw + " MB/s" + "\nRND RD: " + this.avg_iops_rr + " IOPS" + "\nRND WR: " + this.avg_iops_rw + " IOPS\n\n";
        }

        if (this.avg_perf_sqlite_insert != 0.0D && this.avg_perf_sqlite_update != 0.0D && this.avg_perf_sqlite_delete != 0.0D) {
            StringBuilder var2 = (new StringBuilder()).append(var1).append("# SQLite benchmark\n").append(this.transaction_size).append(" / ").append(this.journal_mode).append(" / ");
            String var3;
            if (this.index_usage == 1) {
                var3 = "Index";
            } else {
                var3 = "No Index";
            }

            var1 = var2.append(var3).append("\n").append("\nInsert: ").append(this.avg_perf_sqlite_insert).append(" QPS").append("\nUpdate: ").append(this.avg_perf_sqlite_update).append(" QPS").append("\nDelete: ").append(this.avg_perf_sqlite_delete).append(" QPS\n\n").toString();
        }

        return var1;
    }

    public String getTarget() {
        return this.target;
    }
}
